﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility;
using HZ.MBSM.Model;

public partial class HomePage_LawInfo : System.Web.UI.Page
{
    public string strTitle, strContent, strConferdate;
    protected void Page_Load(object sender, EventArgs e)
    {
        
           string  LawId = SysFun.IsSQL(Request.QueryString["LawId"].ToString());
            if (!this.IsPostBack)
            {
                Db db = new Db(false);
                Grove.ORM.ObjectOperator oo = db.GetObjectOperator();
                HZ.MBSM.Model.law law = (HZ.MBSM.Model.law)oo.Retrieve(typeof(HZ.MBSM.Model.law), LawId);
                strTitle = law.Title;
                strContent = law.Content;
                strConferdate = law.ConferDate.ToShortDateString();
                oo.Dispose();
                db.Close();
            }

        

    }
}
